/**
 *  @file SDLMovingText.h
 *
 *  @date 29-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLMOVINGTEXT_H_
#define SDLMOVINGTEXT_H_

#include <iostream>
#include "sprite.h"

namespace si_sdl
{
/**
 * A class that represents moving text. This text will probably be made by an SDLTypeSetter.
 * Any controller can control this object.
 */
class SDLMovingText: public si::Sprite
{
public:
	/**
	 * Ctor
	 * @param rep The text
	 * @param control The controller
	 * @return
	 */
	SDLMovingText(
			std::tr1::shared_ptr<si::Representation> rep,
			std::tr1::shared_ptr<si::Controller> control);
	virtual ~SDLMovingText();

	void update(double time){ fController->update(time); }
	virtual void draw();
};

}

#endif /* SDLMOVINGTEXT_H_ */
